public void tick()
	{
//		if(frame.getWidth() != realSize.width || frame.getHeight() != realSize.height)
//			frame.pack();
		
		if(!gameOver)
		{
			if(readyToSwap)
			{
				endTurn();
			}
			
			if(swappingNow)
			{
				readyToSwap = false;
				timerPos--;
				if(timerPos == 0)
				{
					swappingNow = false;
					timerPos = timerLength;
				}
			}
			
			checkGameOver();
			
			game.tick();			//tick the game
		}
	}