current position of player will be saved as a savepoint now
fixed coding style