Overloaded the output stream for game objects