changed the program to use less preprocessor statements

this includes
- changing press_keys to take a parameter for the player
- iterating players with for loops
- merging p?_signal/_last/_keys arrays to a multidimensional array