Bug fix and improvement

--Cleaned up level 2 algorithm and fixed a bug that caused the Player to
consider safe moves as unsafe moves.