not working
code cleaning
attempted not permitting resize
commented out previous commit
working on improvin ai
more work on ai.