private void processMousePress(MouseEvent e) {
        int buttonCode = e.getButton();
        Point clickPoint = e.getPoint();

        if (buttonCode == MouseEvent.BUTTON1) {
            gameController.handleClick(clickPoint);
        } else if (buttonCode == MouseEvent.BUTTON3) {
            gameController.handleRightClick(clickPoint);
        }
    }