Finished the palidnrome code