Refactored double code in the buttons and other actors drawing