Initial attempt at rectangle collision, still not quite working