Moves calculation