Thank you @NegativeSixtyThree for snap to grid, i have used it to create another engine: RANDOM MOVEMENT FOR NPCS! it applies to snap to grid, and can control INFINITE (300 unit limit) characters. backpack the character sprite for engine.
the walls have a maximum and minimum x and y locations to keep them in the grid (not required for engine) MUST GIVE CREDIT