player's code to playing boxey