Fix RemoveTreeFromList()
Cleanup gamelogic bot code