Added functionality to return the correct index when a dragable object is filtered. Also did some maintenance to clean up the code a little. I replaced the table with a list to make testing easier (just an ecentricity of the testing code).