adding of the gravity and the gestion of the mouse