Added player.dx to fix motion stuttering