List index problem somewhere causing phases to glitch out. Probably forgot to add something to a list somewhere.