basic and unfinished 2D game engine built in javascript