Finished Stack Class. Fix an rule exploit in stack.