public DisplayMode getHighestResolutionDisplayMode(){
		DisplayMode[] videoCardModes = videoCard.getDisplayModes();
		int highest = 0;
		for(int k = 1; k < videoCardModes.length; k++){
			if(videoCardModes[highest].getWidth() < videoCardModes[k].getWidth()){
				highest = k;
			}else if(videoCardModes[highest].getWidth() == videoCardModes[k].getWidth()
					&& videoCardModes[highest].getHeight() < videoCardModes[k].getHeight()){
				highest = k;
			}else if(videoCardModes[highest].getWidth() == videoCardModes[k].getWidth()
					&& videoCardModes[highest].getHeight() == videoCardModes[k].getHeight()
					&& videoCardModes[highest].getBitDepth() < videoCardModes[k].getBitDepth()){
				highest = k;
			}
		}
		return videoCardModes[highest];
	}