Not Playing with a Full Deck

What does the idiom “Not Playing with a Full Deck” mean?

Definition:

Stupid, mentally deficient or impaired

For example:

“John’s suggestions in the meeting were ridiculous. Sometimes I think he’s not playing with a full deck.”

Notes:

“A few bricks short of a load” is one of many variants.