public void run()
	{
		screen = createVolatileImage(pixel.width, pixel.height);	//actually use the graphics card (less lag)
		
		render();
		
		if(!debugMode)
		{
			int twoPlayers = JOptionPane.showConfirmDialog(null, "Play with 2 players?", "2 Players?", JOptionPane.YES_NO_OPTION);
			if(twoPlayers == 1)			//they said no
				isTwoPlayers = false;
			else
				isTwoPlayers = true;
		}
		else
		{
			isTwoPlayers = false;
		}
		
		if(!debugMode)
		{
			render();
			JOptionPane.showMessageDialog(null, "Look away after ending your turn\n\n" +
					"Normal Controls:\nClick - Bomb square\nSpace - End turn\n\n" +
					"Editing Controls:\nE - Toggle editing mode\n" +
					"R - Random ship arrangement\nArrows - Move ship\n" +
					"Ctrl - Rotate ship\nSpace - Place ship / Finish placing ships");
		}
		
		while(isRunning)
		{
			tick();			//do math and any calculations
			render();		//draw the objects
			
			try
			{
				Thread.sleep(tickTime*(int)computerSpeed);
			}catch(Exception e){ }
		}
	}