public void tick(){
		if(blocksForeground != null){
			for(int x = 0; x < blocksForeground.length; x++){
				for(int y = 0; y < blocksForeground[x].length; y++){
					if(blocksForeground[x][y] != null){
						blocksForeground[x][y].tick();
					}
				}
			}
		}
		if(blocksBackground != null){
			for(int x = 0; x < blocksBackground.length; x++){
				for(int y = 0; y < blocksBackground[x].length; y++){
					if(blocksBackground[x][y] != null){
						blocksBackground[x][y].tick();
					}
				}
			}
		}
		for(int i = 0; i < entities.size(); i++){
			entities.get(i).tick();
		}
	}