added margin class
added stylesheet with grid design and game example to html
some functions for margin validation