public static void checkGremlins(){
		//Check and respond to hitting gremlins
		long px = Math.round(player.xCoord);
		long py = Math.round(player.yCoord);
		int n;
		for (n=0;n<gremlin.allGremlins.size();n++){
			if (gremlin.allGremlins.get(n).world==player.world){
			long x = Math.round(gremlin.allGremlins.get(n).xCoord);
			long y = Math.round(gremlin.allGremlins.get(n).yCoord);
			if ((py == y)&&(px == x)){
				justGotHurt%=24;
				if (justGotHurt==0 && gremlin.allGremlins.get(n).extra == 0)
					player.health-=usefulNumbers.gremlinAttack;
				else if (justGotHurt==0 && gremlin.allGremlins.get(n).extra == 1)
					player.health-=3*usefulNumbers.gremlinAttack;
				else
					justGotHurt++;
			}
			}
		}
	}