Refactoru Wk4 exercise & midterm: Create a js based roguelike game