Added collision detection for players and ball