Pawn to Queen Function and Greedy psuedo code