finished gridmovement and collision detection exposing the API for them to the Lua agent