Formatted some of the code to be more readable

abstracted some functionality in Pong.hs to make things more readable