Singulariy handler

* Added singularity handler
* Fixed bug in Player
* Fixed bug in SceneryGenerator