Abstract game events in view object
Move view object to lib/view
Add unit tests for view