some functions to compat

moved 2 functions to compat.lua
* getSpectators
* doRelocate
That is one way to do it. The most efficient way would be to store the results from getSpectators in a local variable as the first thing you do in the function. Check if the result is an empty table, and if so return nil. If it's not empty, iterate it and replace its value with existingValue:getId() and then return that same table.

Basically:
```lua
local res = Game.getSpectators(...)
if #res == 0 then
    return nil
end

for index, spectator in ipairs(res) do
    res[index] = spectator:getId()
end
return res
```