Update watchtick.rb

cleaned up code