Reworked proccessEntity() to function with uneven number of entities, test confirms everything works :]