Added some randomness to the AI to make it less predictable