changed to a 2D grid system and rewrote add/remove unit functions