Optimizing the Control of a Wi-Fi based Wheelchair