add better solution for jump game