added implementations of AI. lots of bugs