One rule per object file
Using isState function
Using new distance
Fixed mistake in Makefile - one target per object