fixed out of bounds indexing problem when searching for existing officals and players