I think the math domain error is coming from the psy calculation, will look into more soon
Merge branch 'master' of https://github.com/trevhoot/tetris_arm