tidying up code

shifted bulk of code from Controller to Hand;
renamed AI code and cleaned it up;