Merge pull request #4 from darkstar112358/master

Fix bug in bestAvailableCell function.