Fixed minor bug fixes. Added basic ghost code (untested). Each robot has a unique index.