Oceans: AI improvements

Bug fixes related to AI improvements and crashing