Added mounse input and game loop