Updated state to use getPlayerPos()