added more methods and test to game.js