move matrix code back to selector module
factor in lag factor when rotating the board