Properly resets the tile's Y flipping

This bug caused many tiles to be Y flipped if only one tile was actually intended to be flipped.