Ball physics and opponent AI