Refactoring. Add map border collision. Add random entity move.