Several fixes for stability, added new code for trainer and coaches

Added searchBall method (it needs to be improved)