darkstar112358/anti-2048 — pull request #4 by jayanthkoushik (2014-03-24 12:59:42+00:00)
Title: Fix bug in bestAvailableCell function.

The bestAvailableCell function was returning cell[0] if no cell has 2s adjacent to it. This commit fixes this issue by returning a random cell if this happens.