28 seconds to the end,after a failed shot I take an offensive rebounds,and my guard,instead of use all the 24 second for the shots,try the lay-up after 2 second and miss the shot
you got an offensive rebound and went back up for the shot, nothing unusual about that.
Then,1 point advantage,26 second to the end,3 foul to spend,and not one used
there was 26 seconds left. If you'd started fouling, you would have given the other team the full 26 seconds and the last possession. Without fouls, they only had 24 seconds and you could have stopped their offense if you'd played good defense or, if they scored (like they did) you got the last possession and the chance to win the game.
And last but not least,with -1,and 20 second to play,my players didn't try to shot
they didn't shoot because you turned the ball over right at the end as you tried to get the ball inside (as was your tactic, Look Inside).
You can't blame the game engine just because you lost a close game. Of course you can analyse things afterwards and say your players should have done this or that but the things that happened certainly weren't ridiculous and real life players don't always do what seems to be the "right" thing every time either. Hindsight is a wonderful thing.
You could be looking at why your teams offensive flow is so poor or other things like that but I doubt you'd be complaining about the game engine if you won the game anyway ;)