Added flipping and score tallying,