chess implementation in python