private boolean checkEdge(TicketType type1, Edge.EdgeType type2) {
		// check set initially to false
		boolean check = false;
		// if ticket type and edge are both bus - return true
		if (type1 == TicketType.Bus && type2 == Edge.EdgeType.Bus) {
			check = true;
			// same as before but with taxi
		} else if (type1 == TicketType.Taxi && type2 == Edge.EdgeType.Taxi) {
			check = true;
			// same as before but with underground
		} else if (type1 == TicketType.Underground
				&& type2 == Edge.EdgeType.Underground) {
			check = true;
		} else if (type1 == TicketType.SecretMove || type1 == TicketType.DoubleMove)
			check = true;
		// otherwise false is returned
		return check;
	}