Leetcode Check If One String Is Number Python Snake Game