226227228229230231232233234235236
throw new PlayerCantMoveTwice(player); } // It's not your turn if (!player.equals(whoIsNext())) { throw new NotYourMove(player); } // It's already taken if (!getStorage().cellIsEmpty(cell)){ throw new PositionIsAlreadyTaken();