Now first searches path only on empty squares and if there is none, it search with walls. Also if the level is without player or is taking forever to create, we make new level.