Java Games using Artifical Intelligence algorithms