Refactor isValidMove().
Remove completed TODO.