public boolean buildTower(int x, int y, Player p, Consts.TowerType type)
	{
		if(board[y][x].isBuildable())
		{
			//Build a tower depending on what tower is being build
			switch(type)
			{
				case SLOWTOWER:
					//Return false if the player can't afford the tower
					//if(! (p.getMoney() > SlowTower.getPurchaseCost())) return false;
					
					//Set the board location to be a new SlowTower
					try { board[y][x] = new SlowTower(x, y, p);	} 
					catch (IOException e) { e.printStackTrace();}
					
					//Subtract the cost from the player
					p.setMoney(p.getMoney() - SlowTower.getPurchaseCost());
					
					//Add the tower to the board's list of towers by player 
					playerTowers.get(p.getIndex()).add((SlowTower) board[y][x]);
					
					//Update the paths
					updatePath();
					
					//Return true for a successful purchase
					return true;
			}
			return true;
		}
		return false;
	}