Moved card flip functionality onto the server side