Added flipping mechanic