Nick: changed interfaces for AI. David: added UIelements to share between control and graphics