Refactored scene drawing into functions.