Removed unnecessary Getters 
+ renamed occupiedQ to freeEnd and fixed comparison.