Placement of resistors.

Pull up and pull down resistors set the pin at a logic HIGH and logic LOW respectively. They are used for inputs. You get it?