Implement packet logger, prevent typos in GameState

and some general cleanup