added draft implementation of a star and changed state.cpp