Fix two bugs in trails; don't add duplicate points, and detect ball.pos.x updates