private void updateSelection(int x, int y) {
		//check which button is at the point x,y and select it and update cursor
		if (onNewPlayer(x, y)) {
			setCursor(new Cursor(Cursor.HAND_CURSOR));
			selected = ButtonSelected.NEW;
		} else if (onLoadPlayer(x, y)) {
			setCursor(new Cursor(Cursor.HAND_CURSOR));
			selected = ButtonSelected.LOAD;
		} else if (onStartServer(x, y)) {
			setCursor(new Cursor(Cursor.HAND_CURSOR));
			selected = ButtonSelected.SERVER;
		} else if (onControls(x, y)) {
			setCursor(new Cursor(Cursor.HAND_CURSOR));
			selected = ButtonSelected.CONTROLS;
		} else {
			setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
			selected = null;
		}
		repaint();
	}