redid some library calls, updated roguelike game.js