refactored DrawActivity.startDraw() method and Hat class