Integrated some statistics into the game code