fixed moves left issue with out of bounds