Slight cleanup

It is more efficient and readable if we do nothing unless we're not locked.
Removed unneeded spacings
Removed stray IsLocked
Fixed IsOn
Merge pull request #865 from wiseoldman95/patch-2

Redstone simulator - cleaning up repeater lock code