Check move validity
Check win and lose condition