* @Post: No changes
	 * @Return: List of all legal moves
	 */
	public ArrayList<Move> getMyLegalMoves()
	{
		ArrayList<Piece> myPieces = this.getPieces(this.isWhitesTurn());
		ArrayList<Move> answer = new ArrayList<Move>(myPieces.size()*3);

		this.deselectPiece();
		for(Piece p : myPieces)
		{
			this.parseInput(p.myLocation);//select the current piece
			ArrayList<Point> possibleEndPoints = this.possibleMoves;
			for(Point thePoint : possibleEndPoints)
			{
				if(!this.wouldBeInCheck(thePoint))
				{
					answer.add(new Move(p.myLocation, thePoint));
				}
				
			}
		}
		return answer;
	}