fixed bugs

missing variable and debugging random int was viewable to the user