Rewrote gamelogic::check_in_range and fixed makefile