Adding function to allow agents to be set at a given location in a grid