Finished basic algorithm. Implemented 'randomize' for random starting conditions