public void render(ArrayList<GameObject> list){
		  int x = (Game.PLAYER.getCameraX()/32);
			int y = (Game.WORLD_HEIGHT-Game.PLAYER.getCameraY())/32;
			
			int beginX;
			int beginY;
			
			beginX = x - 2*Game.SCREEN_WIDTH/32;
			beginY = y - 3*Game.SCREEN_HEIGHT/32;

			int endX = beginX + 5*Game.SCREEN_WIDTH/32;
			int endY = beginY + 5*Game.SCREEN_HEIGHT/32;
			
			for (int i = beginY; i < endY; i++) {
				for(int j = beginX; j < endX; j++){
					if(i >= 0 && j >= 0 && i<imageHeight && j<imageWidth){
						list.get(i*imageWidth+j).render();
					}
				}
			}
			
			// objects which are background are added after initializing background 
			if(list.equals(backgroundTiles)){
			for(int i = imageWidth*imageHeight; i < list.size(); i++){
				list.get(i).render();
			}}
	  }