more javascript added game is very functional