Created game loop and started the switch statements controlling movement of the ball