fixed game class, added extend canvas