@Override
    public void onClick(int x, int y) {

        if(displayState == DISPLAY_MENU){

            menu.onClick(x, y);

        } else if(displayState == DISPLAY_GAME_END){

            gameEnd.onClick(x, y);

        } else if(displayState == DISPLAY_GAME) {

            int boardCornerX = (winWidth-400)/2 - 10;
            int boardCornerY = (winHeight-400)/2 - 15;

            if(x >= boardCornerX && x <= boardCornerX + 400
                    && y >= boardCornerY && y <= boardCornerY + 400){

                boardDisplay.boardClicked(x - boardCornerX, y - boardCornerY);

            } else {
                boardDisplay.promotionClicked(y - boardCornerY);
            }
        }
    }