still struggling with atomics, got it working, but unstable. crash program whenever too much is outside of screen or gets too close to eye.