algorithm fixed; massive code cleanup; implement maze drawing