game controller
initial front end javascript and ajax work