Added basic fitness function, counts gaps