add updateGame and getUpdate
switch fmap to infix <$>
eta reduce
add main game loop
remove code duplication