client side implementation of the game 'Memory'