improves performance a lot
fixed bug in maximum score calculation
Merge pull request #1 from nico1510/master

improves performance a lot