Updated .cpp

Added set functions to .cpp for both dog and ball