fixed bugs

also has an ending. fun.