Move player movement code to update method