altera FPGA acting like OR gate when programed as AND gate
Your switches will be active low (i.e. zero when pressed). 
Your LEDs will also be active low (i.e. zero will turn them on).

If you invert the inputs and output of an AND gate, you get an OR gate, hence the behaviour you are seeing.

There is nothing wrong with the FPGA.