replace movePiece function wity applyMove in test
add missing check to test
integrate move related functions to Move class
Merge https://github.com/harvest-ltd/chess