Detect Input Value Python Snake