move pieces code working. Need to clean up the code and add error
checking. YEAAAAAAAAAAAAAH!