working version of game with some minor features added