got the game working and also saved current level to local storage