created games model and controller