Random Unit Placement Error

Re-imagined the code. perhaps it works?