implemented a star, but still having some problems