public Tile getTile(int x, int y){ //position of tile
		//wouldn't a switch case be better?
		if (x < 0 || y < 0 || x >= this.width || y >= this.height){
			return Tile.voidTile;
		}
		int tileID = tiles[x+y*width];
		if (tileID == 0){
			return Tile.grass;
		} else if (tileID == 1){
			return Tile.flower;
		} else if (tileID == 2){
			return Tile.rock;
		} else if (tileID == 3){
			return Tile.orangeGrass;
		}
		return Tile.voidTile;
	}