Removed xVelocity and set yVelocity to static