fixed pscore and added tempScore to fix bug.
finished the game logic and the whole program.  it matches the output that the professor gave.