css and game controller
template optimisation