check for boundary after tweaking new_x/y
implemented random entity creation