Added 'applyGravity' -method