Fixed bugs in fitness functions: spike window will not fall out of bounds.