Locking scheduler when player is removed. Fixes infinite loop on player death.
Game now set to an inactive state when player entity is removed.
Separated player and map initialization into own functions so they can be reused. Game now restarts with a fresh map when set to inactive state.
Merge pull request #4 from ruscoe/master

Fixed browser crash on player death. Game now restarts with fresh map.