Refactor game class click handler