Proof of concept for fitness function. Very unoptimized.