Executing same set of instructions for two parallel lines

if (Button1Pressed = HIGH)

Wrong, unless you meant to unconditionally set Button1Pressed to HIGH, that is