for anyone wondering the formula is (x of red ball + y of red ball) + (x of blue ball + y of blue ball) also be aware that if a ball touches the edges it stops
cta including @-Rex- for his pen text engine