better way of handling no moves left