fixed warnings and added missing dependency for main.cgi in cabal file
implemented binary serialization of game data