First implementation of AI. It currently sucks.