public void moveAll(){
		
		for(Missile missile : missiles){
			
			if(missile != null){
				missile.move();
			}
			
		}
		
		for(int i = 0; i < lasers.length; i++){
			
			if(lasers[i] != null){
				lasers[i].move();
			}
			
		}
		
		for(int i = 0; i < munchkins.length; i++){
			
			if(munchkins[i] != null){
				for(int j = 0; j < munchkins[i].lasers.length; j++){
					if(munchkins[i].lasers[j] != null){
						if(munchkins[i].lasers[j] != null){
							munchkins[i].lasers[j].move();
						}
					}
				}
			}
			
		}
		
		for(int i = 0; i < ufos.length; i++){
			
			if(ufos[i] != null){
				for(int j = 0; j < ufos[i].lasers.length; j++){
					if(ufos[i].lasers[j] != null){
						if(ufos[i].lasers[j] != null){
							ufos[i].lasers[j].move();
						}
					}
				}
			}
			
		}
		
		/* for(Enemy enemy : enemies){
			
			if(enemy != null){
				enemy.move();
			}
			
		} */ //To be implemented in the future
		
		if(!autoplay){
			player.move(flagLeft, flagRight);
		}else{
			if(getNearestMissile() != null){
				player.posX = getNearestMissile().posX - player.width / 2;
			}
			for(Munchkin enemy : munchkins){
				if(enemy != null){
					if(enemy.getCenterPointX() >= player.posX - player.width / 2 && enemy.getCenterPointX() <= player.posX + player.width){
						shoot();
					}
				}
			}
			
			for(UFO enemy : ufos){
				if(enemy != null){
					if(enemy.getCenterPointX() >= player.posX - player.width / 2 && enemy.getCenterPointX() <= player.posX + player.width){
						shoot();
					}
				}
			}
		}
		
	}