Flipping cards work, can now detect game end