fixed a lot of output errors and main game logic