Switched from isStateColliding to isStateValid