Changed how the gradient is calculated, this way is rendered correctly in all board sizes