added flipping tiles