More collision changes and movement

Math.PI / 2 * ratio

dx = this.speed * Math.cos(direction);

if (player1.isColliding(ball)) {