Finally got the jist of it working; is still buggy though