Better box solver, changed input method

Makes your code 100% better ;)
Also new input method to be compatible with Windows. Check if compatible with Linux.