Implemented smart queries

src/gamedata.cpp, src/totomat.cpp
  * Implemented smart queries such that the server is only queried whenever a
    game has started