public void onClick(int x, int y){

        if(isInBox(x, y, 90, 170, 300, 200)){

            chessManager.startGame();

        } else if(isInBox(x, y, 90, 220, 300, 245)){

            System.out.println("network game chosen");
            chessManager.startNetworkGame();


        } else if(isInBox(x, y, 80, 270, 300, 290)){


        } else if(isInBox(x, y, 150, 315, 235, 335)){

            chessManager.closeWindow();

        }

    }