unit test and game logic for rps