Fixed bugs in makeMove, also fixed unit tests to have expected value first,
added unit tests for makeMove