Fixed random number generator

Fixed incorrect check for direction 180. ReadPx does not work for
eliminating duplicate entries.
Implementing different way of checking for dupes

Commented out the existing ReadPx code and am having it search the for
loop.