Fix line endings.
Use enum to identify the type of piece instead of bool.