example about keepinside, move and randomMovment