Moved Space and SpaceClickListener to their own classes, adjusted code
to reflect these changes