public boolean restartLevel()
{
	GameState state = StateUtil.getGameState(proxy);
	
	if(state == GameState.WON || state == GameState.LOST)
	{
		proxy.send( new ProxyClickMessage(420,380));//Click the left most button at the end page
		System.out.println(" restart the level ");
		  try {
				Thread.sleep(2000);
			} catch (InterruptedException e1) {
				e1.printStackTrace();
			}
	}
	else if(state == GameState.PLAYING)
		{
			proxy.send(new ProxyClickMessage(100,39));
			  try {
					Thread.sleep(1000);
				} catch (InterruptedException e1) {
					e1.printStackTrace();
				}
		}

	  //Wait 4000 seconds for loading the level
	   try {
			Thread.sleep(4000);
		} catch (InterruptedException e1) {
		
			e1.printStackTrace();
		}
	   //Zooming out
	   System.out.println("Zooming out");
	   for (int k = 0; k < 15; k++) 
	   {
		   proxy.send(new ProxyMouseWheelMessage(-1));
	   }
	   try {
			Thread.sleep(2000);
		} catch (InterruptedException e1) {
	
			e1.printStackTrace();
		}

	   return true;

}