Reduced nesting level. Removed database spam bug. Adjusted scope of variables and removed unnecessary segments.
Reduced nesting level.
Removed database spam bug.
Adjusted scope of variables and removed unnecessary segments.

CGWilliam/PennyBot