why is my nested loop not executing inside while statement with the if statement

Solution 1:

move = input(": ")

This is where you have done the mistake. When you get the input like this, the value is considered as type "String". (https://docs.python.org/3/library/functions.html#input)

Use,

move = int(input(":"))

as you have done in other places like getting the input for stock