Tinkering with parameters, moved rotation from edgematcher to piecedata