Javascript Array Find Object With Highest Priority Move