DOM based 2d game