Revert "More work on gameobjects."

This reverts commit 0956d8eb4581ce0143b41f9c7736ed6f186e6905.