This code is an AI for the fun of it. Complies in java!