fixed board display
refactored ai