how to build the chess game in python