Changed speed to float to adapt Player