did more work on algorithim, going to need to test it visually soon