public boolean canBuyDevCard(int playerIndex) {
		Player player = serverModel.getPlayers().get(playerIndex);
		
		if (playingCommandsPreconditions(playerIndex) && player.getOre() > 0 && player.getWheat() > 0 && player.getSheep() > 0 && serverModel.getDeck().getTotalDevCardCount() > 0) {
			return true;
		}
		else {
			return false;
		}
	}