Created basic game loop