cleaned up game element class, added javadoc