add cannotMove function and split switchTurn function