added code to game view