Math sucks, and damn php arrays; ready to merge

Holy shit. You know when you're like to destroy everything because you
forgot that in arrays numbers starts from 0? That feel was experimented
just now by me that I was questioning myself why it wasn't working.