fixed logic in makeMove method.
still need to refactor makeMove methods