Added SAT library
Fixed checkBounds to check map bounds