added cursor class for mouse, changed so the mouse won't go off screen.