You aren't going to get anything decent for $400. You will need to save up more money.
For $400 you could possibly get some sort of AMD APU based system but this won't be "decent" for gaming unless you are happy running games on low graphics settings.