Made some more functions pure

Incorporated some suggestions given here:
http://www.reddit.com/r/haskell/comments/22ph8k/code_reviewcritique_my_first_haskell_program_game/

In particular, adjusted pureness of a couple of functions.
made some functions simpler