Reworked Ai committing for further work by Adam and patrik