I think the problem that I described could be solved using a function that will stop the operation of the program for vary small intervals between the actions of the program (such as moving the piece) and in the meantime the OS will be able to do other things.

Kostis.