Fixing game loop for console game