DOM based 2D game