* refactor some code for basic move check