Update main.py

Change how pieceanmove is called