basic infrastructure

added functions, game, logout