fix some bugs

- Null pointer exception in map class -> fixed
- Add Graphic Interface for debugging