adding player x movement. Now with friction-based acceleration/deceleration.