modified variables scoping.

calculate player position before update methods