created checkIfMovePossible function in gameLogic.service