Update bfcode.cpp

Added the ability to get the index, so the interpreter can keep track of loops.