Robot appears. Re-organize previous code