final working version of game