Added working ai: searches for, moves to and mines blocks.