public static Tile getNewTileFromColor(int color) {
		
		Tile tile = null;
		
		switch (color) {
		case SandTile.COLOR:
			tile = new SandTile();
			break;			
		case UnbreakableRailTile.COLOR:
			tile = new UnbreakableRailTile(new FloorTile());
			break;			
		case UnpassableSandTile.COLOR:
			tile = new UnpassableSandTile();
			break;
		case DestroyableWallTile.COLOR:
			tile = new DestroyableWallTile();
			break;
		case HoleTile.COLOR:
			tile = new HoleTile();
			break;
		case WallTile.COLOR:
			tile =  new WallTile();
			break;
		case DropTrap.COLOR:
			tile =  new DropTrap();
			break;
		default:
			tile = new FloorTile();
			break;	
		}
		
		return tile;
	}