public void deal()
	{
		Random rand = new Random();
		// array of cards that have been dealt
		boolean[] dealt = new boolean[21];
		int r = rand.nextInt(21);
		// picks some random cards for the solution
		int check = 0;
		String person, weapon, room;
		person = weapon = room = "";
		while(check < 3)
		{
			Card solution = cards.get(r);
			if(solution.getType() == CardType.PERSON && check ==0)
			{
				dealt[r] = true;
				person = cards.get(r).getName();
				check += 1;
			}
			else if(solution.getType() == CardType.WEAPON && check ==1)
			{
				dealt[r] = true;
				weapon = cards.get(r).getName();
				check += 1;
			}
			else if(solution.getType() == CardType.ROOM && check ==2)
			{
				dealt[r] = true;
				room = cards.get(r).getName();
				check += 1;
			}
			r = rand.nextInt(21);
		}
		answer = new Solution(person, weapon, room);

		// deals the rest of the cards randomly
		int playerNum;
		for(int i =0; i < cards.size()-3; i++)
		{
			while(dealt[r])
			{
				r = rand.nextInt(21); 
			}
			dealt[r] = true;
			playerNum = i%6;        
			players.get(playerNum).getMyCards().add(cards.get(r));
		}
	}