added game resolution detection, some css styling, and game reset dialog