this should work if you call the function minimap in a while loop.