public void onCellClick(BoardCell cell) { if (turnState != TurnState.ChoixChemin) { return; } PlayerPiece currentPiece = team.getActivePiece(); if (currentPiece != null) { currentPiece.onCellClick(cell); checkMove(currentPiece); } }