Solution with empty classes for Super Mario game