implemented figure spawn