Refactoring
added gameobject class