fixed pause and unpause bug
WIP: Fix buzzing when the dog is on the edge