I believe this thread may be helpful: Randomization not working online (problem with "map"?)
To sum up, you can’t set the mouse’s position regardless. For the “map” issue, it’s probably something like this: Rotate a line when mouse is clicked on a stimuli
Basically check if you are trying to read off something about a polygon before it is actually being drawn, if you have code in a begin routine tab or something.