Added tests for psd related functions.  Some modifications to psd related functions.  Deleted tictactoeAdd.