Optimizes the bot even more by finding the closest entry

Instead of moving horizontal and then moving down when necessary, this
calculates the nearest entry every time.