fix random deplacement and arrayboundexception if postion = 20