Updating the hat switch method used. The old one did not work anymore.