trying to write roguelike game