Completed While Loop

Added console logs for final output.
changed console log location and deleted totalPies variable