Fixed logger, fixed end of game bug, ready for graphics interface