Random AI implemented

sometimes crash - endgame maybe still buggy?