a simple chess version to be improved