Calculate points when moving